home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11697 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: news.vanderbilt.edu!news
  2. From: haseltbt@ctrvax.vanderbilt.edu (Bennett Haselton)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: works in Borland but not in Microsuck Visual C++
  5. Date: 15 Mar 1996 19:54:07 GMT
  6. Organization: Vanderbilt University
  7. Message-ID: <4ichsv$m83@news.vanderbilt.edu>
  8. References: <4ia6h8$jes@news.vanderbilt.edu>
  9. NNTP-Posting-Host: dial094.vanderbilt.edu
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=ISO-8859-1
  12. X-Newsreader: WinVN 0.99.5
  13.  
  14.  
  15. >i was using version 1.0 of Visual C++; i have no knowledge of whether later 
  16. >Microsuck compilers are capable of handling a program like this properly.  
  17. >Please avoid buying their products whenever possible if you have not already 
  18. >resolved to do so.
  19. >        Is there a further explanation of this anomaly which i did not come 
  20. >across?  As usual, great Microsuck jokes will be mailed to anyone who can 
  21. >help.  Thanks!
  22. >
  23. >        Love,
  24. >
  25. >                tm
  26. >        -bennett
  27. >
  28.  
  29.     At least two people have told me so far that the phrase "struct person 
  30. *personPtr" is interpreted by the compiler to mean, "initialize a pointer to a 
  31. person and call it personPtr", not "initialize a person and call it 
  32. *personPtr".  As someone pointed out, this ambiguity is confusing because 
  33. "*pointername" is very often treated as a variable name; for example, the 
  34. instruction "int *b, a" makes "b" an integer pointer and "a" an integer.
  35.     The question was originally posted to alt.destroy.microsoft, and they 
  36. must have removed it from their newsgroup and posted it here.  It was not my 
  37. decision; please do not think that i would post something as inflammatory as 
  38. my last message to a "serious" newsgroup like this one instead of taking it to 
  39. alt.destroy.microsoft.  Incidentally, come by and visit alt.destroy.microsoft 
  40. anyway.
  41.     Love,
  42.  
  43.         tm
  44.     -bennett
  45.  
  46.